<div class="panel panel-box">
    <div class="panel-heading">
            <h3 class="panel-title">
		<?php if($this->type == Teaching::TYPE_TEACH):?>
                <?php echo yii::t('other/Site','Teaching Resources')?>
		<?php else:?>
                <?php echo "平台资源"?>
		<?php endif;?>
                <a href="<?php echo yii::app()->baseUrl.'/display/teachinglist'?>"><span class="pull-right">+更多</span></a>
            </h3>
    </div>
    <ul class="list-group">
        <?php for($i = 0;$i < ((count($this->teachingModel) > 5) ? 5 : count($this->teachingModel));$i++):?>
        <li class="list-group-item"><span class="glyphicon glyphicon-download-alt"></span>
            <a href="<?php echo yii::app()->baseUrl.'/teaching/view/'.$this->teachingModel[$i]->teaching_id?>"><?php echo CHtml::encode($this->teachingModel[$i]->title);?></a></li>
        <?php endfor;?>
    </ul>
</div>
